package com.crm.app.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户呼叫流水对象 user_call_jour
 * 
 * @author ruoyi
 * @date 2024-03-10
 */
public class UserCallJour extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 呼叫类别 1-呼入 2-呼出 */
    @Excel(name = "呼叫类别 1-呼入 2-呼出")
    private String type;

    /** 呼叫发起方 */
    @Excel(name = "呼叫发起方")
    private String callFrom;

    /** 呼叫目标方 */
    @Excel(name = "呼叫目标方")
    private String callTo;

    /** 呼叫时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "呼叫时间", width = 30, dateFormat = "yyyy-MM-dd  HH:mm:ss")
    private Date callTime;

    /** 是否接通 1-是 0-否 */
    @Excel(name = "是否接通 1-是 0-否")
    private String isConnected;

    /** 通话时长 */
    @Excel(name = "通话时长")
    private Long talkTime;

    /** 员工id */
    @Excel(name = "员工id")
    private Long empId;
    /** 开始时间 */
    private String startTime;
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setCallFrom(String callFrom) 
    {
        this.callFrom = callFrom;
    }

    public String getCallFrom() 
    {
        return callFrom;
    }
    public void setCallTo(String callTo) 
    {
        this.callTo = callTo;
    }

    public String getCallTo() 
    {
        return callTo;
    }
    public void setCallTime(Date callTime) 
    {
        this.callTime = callTime;
    }

    public Date getCallTime() 
    {
        return callTime;
    }
    public void setIsConnected(String isConnected) 
    {
        this.isConnected = isConnected;
    }

    public String getIsConnected() 
    {
        return isConnected;
    }
    public void setTalkTime(Long talkTime) 
    {
        this.talkTime = talkTime;
    }

    public Long getTalkTime() 
    {
        return talkTime;
    }
    public void setEmpId(Long empId) 
    {
        this.empId = empId;
    }

    public Long getEmpId() 
    {
        return empId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("callFrom", getCallFrom())
            .append("callTo", getCallTo())
            .append("callTime", getCallTime())
            .append("isConnected", getIsConnected())
            .append("talkTime", getTalkTime())
            .append("empId", getEmpId())
            .append("createTime", getCreateTime())
            .toString();
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }
}
